﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SIMS_GUI_Item
{
    public partial class StudentManagementAchievement : Form
    {
        public StudentManagementAchievement()
        {
            InitializeComponent();
        }

        public StudentManagementAchievement(string UserName)
        {
            InitializeComponent();
            this.lbl_UserName.Text = UserName;
        }

        private void btn_AchievementQuery_Click(object sender, EventArgs e)
        {
            /*
            AchievementQuery aq = new AchievementQuery(lbl_UserName.Text);
            aq.BackColor = Color.FromArgb(50, 69, 101);
            aq.Width = 1215;
            aq.Height = 850;
            aq.Location = new Point(209, 175);
            aq.Show();
            */
            this.pnl_AchievementQuery.Controls.Clear();
            aq.TopLevel = false;
            aq.Dock = DockStyle.Fill;
            this.pnl_AchievementQuery.Controls.Add(aq);
            aq.Show();
        }

        private void btn_PersonalInformationQuery_Click(object sender, EventArgs e)
        {
            /*
            PersonalInformation pi = new PersonalInformation(lbl_UserName.Text);
            pi.BackColor = Color.FromArgb(50, 69, 101);
            pi.Width = 1215;
            pi.Height = 850;
            pi.Location = new Point(209, 175);
            pi.Show();
            */
            this.pnl_AchievementQuery.Controls.Clear();
            pi.TopLevel = false;
            pi.Dock = DockStyle.Fill;
            this.pnl_AchievementQuery.Controls.Add(pi);
            pi.Show();
        }

        private void Item_Account_Click(object sender, EventArgs e)
        {
            StudentManagementAccount ac = new StudentManagementAccount();
            ac.Show();
            this.Close();
        }

        AchievementQuery aq;
        PersonalInformation pi;
        private void StudentManagementAchievement_Load(object sender, EventArgs e)
        {
            aq = new AchievementQuery(lbl_UserName.Text);
            pi = new PersonalInformation(lbl_UserName.Text);
        }
    }
}
